/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
  background-color: #f5f5f5;
}

.layout {
  min-height: 100vh;
  background: #fff;
}

.site-layout-content {
  width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  min-height: calc(100vh - 112px - 70px); /* 减去header和footer的高度 */
}

/* 响应式布局 */
@media (max-width: 1200px) {
  .site-layout-content {
    width: 100%;
    padding: 20px;
  }
}

/* 链接样式 */
a {
  color: #ff5000;
  text-decoration: none;
}

a:hover {
  color: #ff6a00;
}

/* Ant Design 组件样式覆盖 */
.ant-layout {
  background: #fff;
}

.ant-menu-horizontal {
  border-bottom: none;
}

.ant-btn-primary {
  background: #ff5000;
  border-color: #ff5000;
}

.ant-btn-primary:hover,
.ant-btn-primary:focus {
  background: #ff6a00;
  border-color: #ff6a00;
}

/* 分隔线样式 */
.ant-divider {
  border-color: #e8e8e8;
}

/* 卡片样式 */
.ant-card {
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ant-card-hoverable:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* 表单样式 */
.auth-form {
  max-width: 400px;
  margin: 40px auto;
  padding: 24px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.auth-form-title {
  text-align: center;
  margin-bottom: 24px;
}

.auth-form-button {
  width: 100%;
}

/* 电影卡片网格样式 */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

/* 电影详情页样式 */
.movie-detail-container {
  display: flex;
  gap: 24px;
  margin: 20px 0;
}

.movie-detail-poster {
  flex: 0 0 300px;
}

.movie-detail-info {
  flex: 1;
}

/* 评分样式 */
.ant-rate {
  color: #ff5000;
}

/* 标签样式 */
.ant-tag {
  border-radius: 2px;
}

/* 加载状态样式 */
.loading-container {
  text-align: center;
  padding: 40px 0;
}

/* 空状态样式 */
.empty-container {
  text-align: center;
  padding: 40px 0;
  color: #999;
}

.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.logo {
  height: 32px;
  margin: 16px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.header-menu {
  justify-content: flex-end;
}

.carousel-container {
  margin-bottom: 24px;
}

.carousel-container .slick-slide {
  text-align: center;
  height: 400px;
  line-height: 400px;
  background: #364d79;
  overflow: hidden;
}

.carousel-container h3 {
  color: #fff;
}

.movie-card {
  width: 100%;
  margin-bottom: 16px;
}

.movie-card .ant-card-cover img {
  height: 300px;
  object-fit: cover;
}

.movie-detail-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 16px;
}

.movie-detail-meta {
  margin-bottom: 16px;
}

.movie-detail-synopsis {
  margin-bottom: 24px;
}

.screening-section {
  margin-top: 24px;
}
